<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="DataLib,com.andreanaya.net.DataLib,TYPE_BINARY,TYPE_IMAGE,TYPE_SWF,TYPE_TEXT,maxDownloads,queue,addItem,addItemAt,clear,clearAll,close,closeAll,deleteData,deleteItem,dispose,getData,getItem,load,removeItem,removeItemAt,setPriority" name="keywords">
<title>com.andreanaya.net.DataLib</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'DataLib - API Documentation';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?com/andreanaya/net/DataLib.html&amp;com/andreanaya/net/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;DataLib</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#eventSummary">Events</a>&nbsp;| <a href="#constantSummary">Constants</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class DataLib"); titleBar_setSubNav(true,true,false,false,true,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.andreanaya.net</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class DataLib</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">DataLib <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
</table>
<p></p>
  DataLib
  <p>Loader manager class</p>
    <p></p>
<br>
<span class="label">Example</span>
<br>The following code show how to load an image with DataLib:
  <div class='listing'><pre>
  
  var dataLib:DataLib = new DataLib();
  dataLib.addItem("image.jpg", DataLib.TYPE_IMAGE);
  
  dataLib.addEventListener(DataLibEvent.COMPLETE, onLoadComplete);
  
  dataLib.load();
  
  function onLoadComplete(e:DataLibEvent):void
  {
    var image:Bitmap = DataLib.getData("image.jpg");
    addChild(image);
  }</pre></div> 
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#maxDownloads">maxDownloads</a> : uint<div class="summaryTableDescription">[static]
   Indicates how many files can be loaded at the same time.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#queue">queue</a> : Array<div class="summaryTableDescription">[read-only] 
   Returns the load queue.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#DataLib()">DataLib</a>()</div>
<div class="summaryTableDescription"> 
   Creates a new DataLib instance.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addItem()">addItem</a>(request:*, type:String, returnObject:Object = null, context:LoaderContext = null):<a href="../net/DataLibItem.html">DataLibItem</a>
</div>
<div class="summaryTableDescription"> 
   Adds an item to the load queue of the instance and returns that item.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addItemAt()">addItemAt</a>(request:*, type:String, index:uint, returnObject:Object = null, context:LoaderContext = null):<a href="../net/DataLibItem.html">DataLibItem</a>
</div>
<div class="summaryTableDescription"> 
   Adds an item to the load queue of the instance and returns that item.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#clear()">clear</a>():void</div>
<div class="summaryTableDescription"> 
   Remove all itens from the load queue.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#clearAll()">clearAll</a>():void</div>
<div class="summaryTableDescription">[static] 
   Clear all instances of DataLib.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#close()">close</a>():void</div>
<div class="summaryTableDescription"> 
   Stops the loading process.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#closeAll()">closeAll</a>():void</div>
<div class="summaryTableDescription">[static] 
   Close all instances of DataLib.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#deleteData()">deleteData</a>(request:*):void</div>
<div class="summaryTableDescription">[static] 
   Delete data from the library.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#deleteItem()">deleteItem</a>(request:*):void</div>
<div class="summaryTableDescription"> 
   Delete an item from the library.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#dispose()">dispose</a>():void</div>
<div class="summaryTableDescription">[static] 
   Stops all the load process, close and clear all instances of DataLib and delete all data from the library.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getData()">getData</a>(request:*):*</div>
<div class="summaryTableDescription">[static] 
   Retrieve data from the library.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getItem()">getItem</a>(request:*):<a href="../net/DataLibItem.html">DataLibItem</a>
</div>
<div class="summaryTableDescription"> 
   Retrieve an item from the load queue.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#load()">load</a>():void</div>
<div class="summaryTableDescription"> 
   Starts the loading process.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#removeItem()">removeItem</a>(request:*):void</div>
<div class="summaryTableDescription"> 
   Remove an item from the load queue.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#removeItemAt()">removeItemAt</a>(index:uint):void</div>
<div class="summaryTableDescription"> 
   Remove an item from the load queue at a especific position.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#setPriority()">setPriority</a>(request:*, priority:uint):<a href="../net/DataLibItem.html">DataLibItem</a>
</div>
<div class="summaryTableDescription"> 
   Change the position of an item in the load queue.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
</table>
</div>
<a name="eventSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Events</div>
<table id="summaryTableEvent" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Event</th><th>Summary</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:complete">complete</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Dispatched when the queue load is complete.</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:progress">progress</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Dispatched when the queue load is in progress.</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
</table>
</div>
<a name="constantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Constants</div>
<table id="summaryTableConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#TYPE_BINARY">TYPE_BINARY</a> : String = "binary"<div class="summaryTableDescription">[static]
   The <code>DataLib.TYPE_BINARY</code> constant defines a binary file to be loaded.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#TYPE_IMAGE">TYPE_IMAGE</a> : String = "image"<div class="summaryTableDescription">[static]
   The <code>DataLib.TYPE_IMAGE</code> constant defines an image file to be loaded.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#TYPE_SWF">TYPE_SWF</a> : String = "swf"<div class="summaryTableDescription">[static]
   The <code>DataLib.TYPE_SWF</code> constant defines a swf file to be loaded.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#TYPE_TEXT">TYPE_TEXT</a> : String = "text"<div class="summaryTableDescription">[static]
   The <code>DataLib.TYPE_TEXT</code> constant defines a text file to be loaded.</div>
</td><td class="summaryTableOwnerCol">DataLib</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="maxDownloads"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">maxDownloads</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>maxDownloads:uint</code>&nbsp;&nbsp;[read-write]<p>
   Indicates how many files can be loaded at the same time.
   
   </p><p>The default value is <code>3</code>.</p>
<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public static function get maxDownloads():uint</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set maxDownloads(value:uint):void</code>
<br>
</div>
<a name="queue"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">queue</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>queue:Array</code>&nbsp;&nbsp;[read-only]<p> 
   Returns the load queue.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get queue():Array</code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="DataLib()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">DataLib</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function DataLib()</code><p> 
   Creates a new DataLib instance.
   </p></div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="addItem()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addItem</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function addItem(request:*, type:String, returnObject:Object = null, context:LoaderContext = null):<a href="../net/DataLibItem.html">DataLibItem</a></code><p> 
   Adds an item to the load queue of the instance and returns that item.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">request</span>:*</code> &mdash; The url path or URLRequest of the file to be loaded.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">type</span>:String</code> &mdash; The type of file to be loaded. Acceptable types of files are: <code>DataLib.TYPE_BINARY</code>, <code>DataLib.TYPE_IMAGE</code>, <code>DataLib.TYPE_SWF</code> and <code>DataLib.TYPE_TEXT</code>
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">returnObject</span>:Object</code> (default = <code>null</code>)<code></code> &mdash; The object to be returned when the file load is complete.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">context</span>:LoaderContext</code> (default = <code>null</code>)<code></code> &mdash; A LoaderContext object. This object is used only for images and swf files. If the context parameter is not specified it will refers to the DataLib defaultLoaderContext.
   
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../net/DataLibItem.html">DataLibItem</a></code> &mdash; 
                        A DataLibItem object in wich can be added DataLibEvent.COMPLETE and DataLibEvent.PROGRESS events.
   
   
                        
                     </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="DataLib.html#TYPE_BINARY" target="">DataLib.TYPE_BINARY</a>
<br>
<a href="DataLib.html#TYPE_IMAGE" target="">DataLib.TYPE_IMAGE</a>
<br>
<a href="DataLib.html#TYPE_SWF" target="">DataLib.TYPE_SWF</a>
<br>
<a href="DataLib.html#TYPE_TEXT" target="">DataLib.TYPE_TEXT</a>
</div>
</div>
<a name="addItemAt()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addItemAt</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function addItemAt(request:*, type:String, index:uint, returnObject:Object = null, context:LoaderContext = null):<a href="../net/DataLibItem.html">DataLibItem</a></code><p> 
   Adds an item to the load queue of the instance and returns that item.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">request</span>:*</code> &mdash; The url path or URLRequest of the file to be loaded.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">type</span>:String</code> &mdash; The type of file to be loaded. Acceptable types of files are: <code>DataLib.TYPE_BINARY</code>, <code>DataLib.TYPE_IMAGE</code>, <code>DataLib.TYPE_SWF</code> and <code>DataLib.TYPE_TEXT</code>
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">index</span>:uint</code> &mdash; The index position to which the item is added.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">returnObject</span>:Object</code> (default = <code>null</code>)<code></code> &mdash; The object to be returned when the file load is complete.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">context</span>:LoaderContext</code> (default = <code>null</code>)<code></code> &mdash; A LoaderContext object. This object is used only for images and swf files. If the context parameter is not specified it will refers to the DataLib defaultLoaderContext.
   
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../net/DataLibItem.html">DataLibItem</a></code> &mdash; 
                        A DataLibItem object in wich can be added DataLibEvent.COMPLETE and DataLibEvent.PROGRESS events. 
   
   
                        
                     </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="DataLib.html#TYPE_BINARY" target="">DataLib.TYPE_BINARY</a>
<br>
<a href="DataLib.html#TYPE_IMAGE" target="">DataLib.TYPE_IMAGE</a>
<br>
<a href="DataLib.html#TYPE_SWF" target="">DataLib.TYPE_SWF</a>
<br>
<a href="DataLib.html#TYPE_TEXT" target="">DataLib.TYPE_TEXT</a>
</div>
</div>
<a name="clear()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">clear</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function clear():void</code><p> 
   Remove all itens from the load queue.
   </p></div>
<a name="clearAll()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">clearAll</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function clearAll():void</code><p> 
   Clear all instances of DataLib.
   
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../net/DataLib.html#clear()" target="">clear()</a>
</div>
</div>
<a name="close()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">close</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function close():void</code><p> 
   Stops the loading process.
   </p></div>
<a name="closeAll()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">closeAll</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function closeAll():void</code><p> 
   Close all instances of DataLib.
   
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../net/DataLib.html#close()" target="">close()</a>
</div>
</div>
<a name="deleteData()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">deleteData</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function deleteData(request:*):void</code><p> 
   Delete data from the library.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">request</span>:*</code> &mdash; The url path or URLRequest of the file.
   </td>
</tr>
</table>
</div>
<a name="deleteItem()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">deleteItem</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function deleteItem(request:*):void</code><p> 
   Delete an item from the library.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">request</span>:*</code> &mdash; The url path or URLRequest of the file to be deleted.
   </td>
</tr>
</table>
</div>
<a name="dispose()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">dispose</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function dispose():void</code><p> 
   Stops all the load process, close and clear all instances of DataLib and delete all data from the library.
   </p></div>
<a name="getData()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getData</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getData(request:*):*</code><p> 
   Retrieve data from the library.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">request</span>:*</code> &mdash; The url path or URLRequest of the file.
   
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>*</code> &mdash; The loaded data.
   </td>
</tr>
</table>
</div>
<a name="getItem()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getItem</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getItem(request:*):<a href="../net/DataLibItem.html">DataLibItem</a></code><p> 
   Retrieve an item from the load queue.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">request</span>:*</code> &mdash; The url path or URLRequest of the item.
   
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../net/DataLibItem.html">DataLibItem</a></code> &mdash; 
                        A DataLibItem object in wich can be added DataLibEvent.COMPLETE and DataLibEvent.PROGRESS events.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="load()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">load</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function load():void</code><p> 
   Starts the loading process.
   </p></div>
<a name="removeItem()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">removeItem</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function removeItem(request:*):void</code><p> 
   Remove an item from the load queue.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">request</span>:*</code> &mdash; The url path or URLRequest of the file to be removed.
   </td>
</tr>
</table>
</div>
<a name="removeItemAt()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">removeItemAt</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function removeItemAt(index:uint):void</code><p> 
   Remove an item from the load queue at a especific position.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">index</span>:uint</code> &mdash; The index where the item to be removed is placed.
   </td>
</tr>
</table>
</div>
<a name="setPriority()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">setPriority</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function setPriority(request:*, priority:uint):<a href="../net/DataLibItem.html">DataLibItem</a></code><p> 
   Change the position of an item in the load queue.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">request</span>:*</code> &mdash; The url path or URLRequest of the item.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">priority</span>:uint</code> &mdash; The position where the item will be placed.
   
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../net/DataLibItem.html">DataLibItem</a></code> &mdash; 
                        A DataLibItem object in wich can be added DataLibEvent.COMPLETE and DataLibEvent.PROGRESS events.
   
                        
                     </td>
</tr>
</table>
</div>
<div class="detailSectionHeader">Event detail</div>
<a name="event:complete"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">complete</td><td class="detailHeaderType">event&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href="../events/DataLibEvent.html"><code>com.andreanaya.events.DataLibEvent</code></a>
<br>
<p></p><p>
  Dispatched when the queue load is complete.
  
  </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../events/DataLibEvent.html#COMPLETE" target="">com.andreanaya.events.DataLibEvent.COMPLETE</a>
</div>
</div>
<a name="event:progress"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">progress</td><td class="detailHeaderType">event&nbsp;</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href="../events/DataLibEvent.html"><code>com.andreanaya.events.DataLibEvent</code></a>
<br>
<p></p><p>
  Dispatched when the queue load is in progress.
  
  </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../events/DataLibEvent.html#PROGRESS" target="">com.andreanaya.events.DataLibEvent.PROGRESS</a>
</div>
</div>
<a name="constantDetail"></a>
<div class="detailSectionHeader">Constant detail</div>
<a name="TYPE_BINARY"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">TYPE_BINARY</td><td class="detailHeaderType">constant</td>
</tr>
</table>
<div class="detailBody">
<code>public static const TYPE_BINARY:String = "binary"</code><p>
   The <code>DataLib.TYPE_BINARY</code> constant defines a binary file to be loaded.
   </p></div>
<a name="TYPE_IMAGE"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">TYPE_IMAGE</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const TYPE_IMAGE:String = "image"</code><p>
   The <code>DataLib.TYPE_IMAGE</code> constant defines an image file to be loaded.
   </p></div>
<a name="TYPE_SWF"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">TYPE_SWF</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const TYPE_SWF:String = "swf"</code><p>
   The <code>DataLib.TYPE_SWF</code> constant defines a swf file to be loaded.
   </p></div>
<a name="TYPE_TEXT"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">TYPE_TEXT</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const TYPE_TEXT:String = "text"</code><p>
   The <code>DataLib.TYPE_TEXT</code> constant defines a text file to be loaded.
   </p></div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
